Holds information about a raster state. More...
Public Member Functions | |
| RasterState () | |
| virtual | ~RasterState () |
| virtual FILL_MODE | getFillMode () const =0 |
| virtual CULL_MODE | getCullMode () const =0 |
| virtual bool | getFrontCounterClockwise () const =0 |
| virtual int | getDepthBias () const =0 |
| virtual float | getDepthBiasClamp () const =0 |
| virtual float | getSlopeScaledDepthBias () const =0 |
| virtual bool | getDepthClipEnabled () const =0 |
| virtual bool | getScissorEnabled () const =0 |
| virtual bool | getMultiSampleEnabled () const =0 |
| virtual bool | getAntiAliasedLineEnabled () const =0 |
| virtual unsigned int | getForcedSampleCount () const =0 |
| virtual bool | getConservativeRasterizationEnabled () const =0 |
| virtual void | setFillMode (FILL_MODE value)=0 |
| virtual void | setCullMode (CULL_MODE value)=0 |
| virtual void | setFrontCounterClockwise (bool value)=0 |
| virtual void | setDepthBias (int value)=0 |
| virtual void | setDepthBiasClamp (float value)=0 |
| virtual void | setSlopeScaledDepthBias (float value)=0 |
| virtual void | setDepthClipEnabled (bool value)=0 |
| virtual void | setScissorEnabled (bool value)=0 |
| virtual void | setMultiSampleEnabled (bool value)=0 |
| virtual void | setAntiAliasedLineEnabled (bool value)=0 |
| virtual void | setForcedSampleCount (unsigned int value)=0 |
| virtual void | setConservativeRasterizationEnabled (bool value)=0 |
| virtual void | resetToDefault ()=0 |
| virtual void | exportClassToTree (nkExport::Node *rootNode) override |
| virtual void | importClassFromTree (nkExport::Node *rootNode) override |
Public Member Functions inherited from nkGraphics::Resource | |
| Resource () | |
| Resource (const nkMemory::StringView &path) | |
| virtual | ~Resource () |
| virtual bool | load ()=0 |
| virtual void | unload ()=0 |
| bool | isReadyForRendering () const |
| bool | isUnloaded () const |
| RESOURCE_LOAD_STATE | getLoadState () const |
| nkMemory::StringView | getResourcePath () const |
| RESOURCE_TYPE | getResourceTypeName () const |
| nkMemory::StringView | getResourceName () const |
| bool | getHidden () const |
| virtual void | setResourcePath (const nkMemory::StringView &path) |
| void | setResourceName (const nkMemory::StringView &name) |
| void | setHidden (bool value) |
Public Member Functions inherited from nkExport::Exportable | |
| Exportable () | |
| virtual | ~Exportable () |
Holds information about a raster state.
A raster state drives how the rasterization occur for primitives rendered.
| nkGraphics::RasterState::RasterState | ( | ) |
Constructor. See RasterStateManager::createOrRetrieve().
|
virtual |
Destructor.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Sets the fill mode when rasterizing.
| value | The mode to use. |
|
pure virtual |
Sets the cull mode when rasterizing.
| value | The mode to use. |
|
pure virtual |
Sets whether the front of primitives should be chosen according to their points being declared counter clockwise or not.
| value | Whether the front is counter clockwise (true) or not (false). |
|
pure virtual |
Sets the depth bias used when rasterizing.
| value | The value used. |
|
pure virtual |
Sets the bias clamp to use.
| value | The value used. |
|
pure virtual |
Sets the slope scaled depth bias to use.
| value | The value used. |
|
pure virtual |
Sets whether the depth clipping is enabled or not.
| value | If the clipping should be enabled (true) or not (false). |
|
pure virtual |
Sets whether the scissor test should be enabled or not.
| value | If the test should be enabled (true) or not (false). |
|
pure virtual |
Sets whether multi sampling is enabled.
| value | If multi sampling is enabled (true) or not (false). |
|
pure virtual |
Sets whether the lines should be anti aliased.
| value | If anti aliasing of lines is enabled (true) or not (false). |
|
pure virtual |
Sets the forced sample count used.
| value | The value to use. |
|
pure virtual |
Sets whether conservative rasterization is enabled or not.
| value | If the option is enabled (true) or not (false). |
|
pure virtual |
Resets the state to its default.
|
overridevirtual |
Basic exporting capabilities.
| rootNode | The tree to export to. |
Implements nkExport::Exportable.
|
overridevirtual |
Basic importing capabilities.
| rootNode | The tree to import from. |
Implements nkExport::Exportable.